# 获取IP地址:
IP=$(ifconfig $(route -n | grep ^0.0.0.0 | awk '{print $NF}') | grep inet | grep -v inet6 | awk '{print $2}')

PS1="\[\033[01;33m\] ➜ \[\033[00m\]\[\033[01;31m\]\u@"$IP"\[\033[00m\] \[\033[01;32m\]\w\[\033[00m\] \[\033[01;35m\]\\$ \[\033[00m\]" # root@104.233.199.52 ~/.ssh #
# 配置请参考：https://blog.gtwang.org/linux/how-to-make-a-fancy-and-useful-bash-prompt-in-linux-1/
